package cn.iocoder.yudao.module.erp.controller.admin.product.vo.product;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - ERP 产品分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ErpProductPageReqVO extends PageParam {

    @Schema(description = "产品名称", example = "李四")
    private String name;
    @Schema(description = "全拼音（大写）")
    private String fullPinyin;

    @Schema(description = "拼音首字母（大写）")
    private String firstPinyin;

    @Schema(description = "五笔简码（大写）")
    private String wubiShortcode;


    @Schema(description = "产品分类编号", example = "11161")
    private Long categoryId;

//    @Schema(description = "批次", example = "")
//    private String batch;

    @Schema(description = "单位编号", example = "11161")
    private Long unitId;
    @Schema(description = "生产厂家")
    private String manufacturer;

    @Schema(description = "供应商编号", example = "11161")
    private Long supplierId;

    @Schema(description = "是否收费")
    private Long isFree;

    @Schema(description = "是否专机专用")
    private Long isDedicated;

    @Schema(description = "注册证号")
    private String registCertNum;

    @Schema(description = "医保27位编码")
    private String medicalInsurCode;

    @Schema(description = "是否带量", example = "11161")
    private Integer isQuantity;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    private Integer deleted;

    private Long id;

    private Long dataId;

    @Schema(description = "生效日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] startTime;

    @Schema(description = "截止日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] endTime;

    private int total;

    private Integer isHooking;
}